<template>
	<view style='height: 100%;'>
		<web-view :src="src" style='width: 100%;height: 100%;'></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				viewerUrl: '/static/pdf/web/viewer.html',
				src: ''
			}
		},
		onLoad(options) {
			// let filePath = encodeURIComponent(options.filePath);
			this.src = this.viewerUrl + '?file=' + options.filePath
		}
	}
</script>
